/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Peer.peerRequest;

import Peer.KoTorrentInt;
import java.util.ArrayList;

/**
 *
 * @author user
 */
public class bitField {
    public KoTorrentInt len;
    public final byte id = 5;
    //public ArrayList<Byte> bitF; //bitF.size() = jumlah block pada file
    public byte[] bitF;

    public bitField(){
        len = new KoTorrentInt(1);
    }

    public bitField(byte[] bf){
        this.bitF = bf;
        len = new KoTorrentInt(1 + bitF.length);
    }

}
